Q3SubdivisionStyle_New
You can use theQ3SubdivisionStyle_New
function to create a new subdivision style object.
TQ3StyleObject Q3SubdivisionStyle_New ( const TQ3SubdivisionStyleData *data);
data
- A pointer to a subdivision style data structure.
DESCRIPTION
TheQ3SubdivisionStyle_New
function returns, as its function result, a new style object having the subdivision style specified by thedata
parameter. Themethod
field of the subdivision style data structure pointed to by thedata
parameter should be one of these values:
kQ3SubdivisionMethodConstant kQ3SubdivisionMethodWorldSpace kQ3SubdivisionMethodScreenSpaceThe meaning of thec1
andc2
fields depends on the value of themethod
field. See "Subdivision Style Data Structure" on page 6-11 for details.If a new style object could not be created,
Q3SubdivisionStyle_New
returns the valueNULL
.To change the current subdivision style, you must actually draw the style object. You can call
Q3Style_Submit
to draw the style in retained mode orQ3SubdivisionStyle_Submit
to draw the style in immediate mode.SEE ALSO
See "Subdivision Styles" on page 6-7 for a description of subdivision styles.